﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeFile="AddProduction.aspx.cs" Inherits="Admin_AddProduction" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<script type='text/javascript' src="js/swfupload/swfupload.js"></script>
<script type='text/javascript' src="js/swfupload/swfupload.queue.js"></script>
<script type="text/javascript" src="js/swfupload/swfupload.handlers.js"></script>
 <script type="text/javascript">
     //加载编辑器
     var editor;
     $(function () {
         editor = KindEditor.create('textarea[name="Message"]', {
             resizeType: 1,
             uploadJson: 'tools/upload_ajax.ashx?action=EditorFile&IsWater=1',
             fileManagerJson: 'tools/upload_ajax.ashx?action=ManagerFile',
             allowFileManager: true
         });
         $("#aspnetForm").form({
             url: "",
             onSubmit: function () {  
                 if ($(this).form("validate")) {
                     var formData = dark.getFormData($("#aspnetForm"));
                     DarkBO.Production.Create(formData, { success: function (result) {
                         if (result.ErrorCode == 0) {
                             dark.dialog.success("添加成功");
                         } else {
                             dark.dialog.error("添加失败：" + result.Description);
                         }
                     }
                     });
                 } return false;
             }
         });

         //初始化上传控件
         $(function () {
             InitSWFUpload("tools/upload_ajax.ashx", "Filedata", "2 MB", "js/swfupload/swfupload.swf", 1, 1);
         });
     });
    
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="navigation"><a href="javascript:history.go(-1);" class="back">后退</a>首页 &gt; 内容管理 &gt; 编辑信息</div>
<div id="contentTab">
    <ul class="tab_nav">
        <li class="selected"><a onclick="tabs('#contentTab',0);" href="javascript:;">基本信息</a></li>        
    </ul>

    <div class="tab_con" style="display:block;">
        <table class="form_table">
            <col width="150px"><col>
            <tbody>
            
            <tr>
                <th>标题名称：</th>
                <td><input id="Title" name="Title" type="text" data-options="required:true" class="txtInput normal easyui-validatebox" maxlength="100" /><label>*</label></td>
            </tr>
            <tr>
                <th valign="top" style="padding-top:10px;">图文相册：</th>
                <td>
                    
                    <div class="upload_btn"><span id="upload"></span></div><label>可以上传多张图片。</label>
                    <div class="clear"></div>
                    <!--封面隐藏值.开始-->
                    <!--
                    <input type="hidden" name="focus_photo" id="focus_photo" value=""/>
                    -->
                    
                    <!--封面隐藏值.结束-->
                    <!--上传提示.开始-->
                    <div id="show"></div>
                    <!--上传提示.结束-->
                    <!--图片列表.开始-->
                    <div id="show_list">
                        <ul>
                          
                        </ul>
                    </div>
                    <!--图片列表.结束-->
                </td>
            </tr>
            <tr>
                <th valign="top">详细内容：</th>
                <td>
                    <textarea id="Message" name="Message" cols="100" rows="8" style="width:99%;height:350px;visibility:hidden;"></textarea>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
     
    

    <div class="foot_btn_box">
    <input type="submit" id="btn_submit" class="easyui-linkbutton" value="提交保存" data-options="iconCls:'icon-search'"/>
    &nbsp;<input name="重置" type="reset" class="easyui-linkbutton" value="重 置" data-options="iconCls:'icon-search'"/>
    </div>
</div>
    
</asp:Content>

